// 自动生成模板Seckill_activity_device
package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 秒杀活动设备 结构体  Seckill_activity_device
type Seckill_activity_device struct {
	global.GVA_MODEL
	Seckill_activity_id       *int       `json:"seckill_activity_id" form:"seckill_activity_id" gorm:"column:seckill_activity_id;size:20;"`                   //秒杀活动编号
	Seckill_decimal_device_id *int       `json:"seckill_decimal_device_id" form:"seckill_decimal_device_id" gorm:"column:seckill_decimal_device_id;size:20;"` //秒杀医疗设备编号
	Original_price            *float64   `json:"original_price" form:"original_price" gorm:"column:original_price;"`                                          //原价
	Seckill_price             *float64   `json:"seckill_price" form:"seckill_price" gorm:"column:seckill_price;"`                                             //秒杀价
	Stock                     *int       `json:"stock" form:"stock" gorm:"column:stock;size:20;"`                                                             //秒杀库存
	Discount_type             *string    `json:"discount_type" form:"discount_type" gorm:"column:discount_type;"`                                             //优惠方式
	Discount_value            *float64   `json:"discount_value" form:"discount_value" gorm:"column:discount_value;"`                                          //折扣/特价值
	Deckill_device_status     *string    `json:"deckill_device_status" form:"deckill_device_status" gorm:"column:deckill_device_status;"`                     //状态
	SeckillStartTime          *time.Time `json:"seckill_start_time" form:"seckill_start_time"`                                                                //秒杀开始时间
	SeckillEndTime            *time.Time `json:"seckill_end_time" form:"seckill_end_time"`                                                                    //秒杀结束时间
}

// TableName 秒杀活动设备 Seckill_activity_device自定义表名 seckill_activity_device
func (Seckill_activity_device) TableName() string {
	return "seckill_activity_device"
}
